<!--
 * @Author: your name
 * @Date: 2021-04-22 11:06:41
 * @LastEditTime: 2021-04-22 11:06:59
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \v3.0\public\index.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul class="1111">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
    <script>
        function test() {
            return new Promise((resolve, reject) => {
                reject('this is error')
            })
        }
        async function test2() {
            // try {

            let res = await test()
            console.log(res);

            // } catch (error) {
            //     console.log(error);

            // }

        }
        test2()
    </script>
</body>

</html>